﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Restaurant
{
    public class Waiter:IWorker
    {
        public int ID { get; set; }
        public string Name{get;set;}

        public string OfficePosition{get;set;}

        public Waiter(int id, string name, string officePosition)
        {
            this.ID = id;
            this.Name=name; 
            this.OfficePosition = this.GetType().Name.ToString();
        }
        public override string ToString()
        {
            return (String.Format("{0} - {1}", this.Name, this.OfficePosition));
        }
    }
}
